#ifndef SYSINFO_H
#define SYSINFO_H

#include <QString>

#define LOCATION_FILE   "/tmp/.gpsposition"
#define VERSION_FILE    "/etc/exc_release"
#define BACKLIGHT_CTRL  "/sys/class/backlight/backlight/brightness"

typedef enum UPLOAD_WAY
{
    UPLOAD_WAY_4G,
    UPLOAD_WAY_ETH,
    UPLOAD_WAY_NON
} UPLOAD_WAY_EN;


class Sysinfo
{
public:
    Sysinfo();

    static QString getUploadway();

    static QString getUploadIface();

    static QString getLocation();

    static QString getVersion();

    static QString getIpAddr(const QString &iface);

    static QString getQdSrvInfo();


    static int getBackLight();

    static void setBackLight(int level);
};

#endif // SYSINFO_H
